package com.qf.service.impl;

import com.qf.mapper.DtsOrderMapper;
import com.qf.pojo.DtsOrder;
import com.qf.service.OrderService;
import com.qf.vo.DayStatis;
import com.qf.vo.OrderAmtsVo;
import com.qf.vo.OrderStat;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.stream.Collectors;

@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    private DtsOrderMapper dtsOrderMapper;
    @Override
    public Long findOrdersCount() {
        return dtsOrderMapper.selectCount(null);
    }

    @Override
    public List<DayStatis> findDayStatis() {
        List<DayStatis> dayStatisList=dtsOrderMapper.findDayStatis();



        return dayStatisList;
    }

    @Override
    public List<OrderStat> findOrderStat() {
        return dtsOrderMapper.findOrderStat();
    }


}
